//
//  NoticePublishViewController.swift
//  PropertyCommunity
//
//  Created by benwang on 2021/7/4.
//

import UIKit
import RxSwift
import RxCocoa

class NoticePublishViewController: UIViewController {


  override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)
    opacityNavigationBar(color: .designKit.background)
  }

  override func viewDidLoad() {
    super.viewDidLoad()

    // Do any additional setup after loading the view.
    title = "发布通知"
    view.backgroundColor = .designKit.secondaryBackground

    let content = R.nib.noticePublishContentView(owner: self)!
    content.backgroundColor = .designKit.background
    view.addSubview(content)

    content.snp.makeConstraints { make in
      make.top.equalTo(view.safeAreaLayoutGuide.snp.top).offset(8)
      make.left.right.equalToSuperview()
    }

    let bottom = R.nib.bottomButtonContentView(owner: self)!
    bottom.button.setTitle("立即发布", for: .normal)
    view.addSubview(bottom)

    bottom.snp.makeConstraints { make in
      make.left.right.bottom.equalToSuperview()
      make.height.equalTo(88)
    }
  }


  /*
   // MARK: - Navigation

   // In a storyboard-based application, you will often want to do a little preparation before navigation
   override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
   // Get the new view controller using segue.destination.
   // Pass the selected object to the new view controller.
   }
   */

}
